﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RayTracing
{
    public class SolidTexture : Texture
    {
        Color color;

        public SolidTexture(Color color)  //Solid texture returns just a solid colored sphere
        {
            this.color = color;
        }

        #region Texture Members

        public Color textureAt(P2 point)    //Returns the texture at a P2 point
        {
            return this.color;
        }

        #endregion
    }
}
